Helps to actually _put_ the info into $wgMemc...
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 21 Sep 2008 14:25:46 +0000 (14:25 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 21 Sep 2008 14:25:46 +0000 (14:25 +0000)
includes/Block.php

index 04d7cd4..b9459d5 100644 (file)
@@ -511,6 +511,7 @@ class Block
                $lines = $wgMemc->get( $key );
                if ( !$lines ) {
                        $lines = explode( "\n", wfMsgForContentNoTrans( 'autoblock_whitelist' ) );
+                       $wgMemc->set( $key, $lines, 3600 * 24 );
                }
 
                wfDebug("Checking the autoblock whitelist..\n");